import sys
import logging

def getLogger():
	logger = logging.getLogger("MAIN2")
	formatter = logging.Formatter('%(asctime)s %(levelname)-8s: %(message)s')
	file_handler = logging.FileHandler("main2.log")
	file_handler.setFormatter(formatter)
	console_handler = logging.StreamHandler(sys.stdout)
	console_handler.formatter = formatter
	logger.addHandler(file_handler)
	logger.addHandler(console_handler)
	logger.setLevel(logging.INFO)
	return logger